package trinnes.oliver.unimaas.smartpentalath.control;

import java.util.ArrayList;
import java.util.List;
import trinnes.oliver.unimaas.smartpentalath.data.Cell;
import trinnes.oliver.unimaas.smartpentalath.data.Piece;

/**
 *
 * @author Oliver Trinnes
 */
public class Change
{
  private int lastMove;
  private List<Cell> captured;
  private boolean swapped;
  private Piece capturedPiece;

  public Change(int lastMove,
      List<Cell> captured,Piece capturedPiece, boolean swapped)
  {
    this.lastMove = lastMove;
    this.captured = captured;
    this.swapped = swapped;
    this.capturedPiece = capturedPiece;
  }

  public Change()
  {
    captured = new ArrayList<Cell>();
  }

  public Piece getCapturedPiece()
  {
    return capturedPiece;
  }

  public void setCapturedPiece(Piece capturedPiece)
  {
    this.capturedPiece = capturedPiece;
  }

  public void setCaptured(List<Cell> captured)
  {
    this.captured = captured;
  }

  public void setLastMove(int lastMove)
  {
    this.lastMove = lastMove;
  }

  public void setSwapped(boolean swapped)
  {
    this.swapped = swapped;
  }
  
  public List<Cell> getCaptured()
  {
    return captured;
  }

  public int getLastMove()
  {
    return lastMove;
  }

  public boolean isSwapped()
  {
    return swapped;
  }
  
  
}
